package com.jinbiao.quasar.controller;

import com.jinbiao.quasar.annotate.OperationLog;
import com.jinbiao.quasar.util.AjaxJson;
import com.jinbiao.quasar.util.SystemInfoUtil;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Mapping;

import java.net.UnknownHostException;

@Controller
@OperationLog
public class SystemInfoController {
    @Mapping("/systemInfo")
    public AjaxJson getSystemInfo() throws InterruptedException, UnknownHostException {
        return AjaxJson.getSuccessData(SystemInfoUtil.getInfo());
    }
}
